{
    interface UserInterface {
        name:string,
        age:number,
        isLock:boolean
    }
    let user:UserInterface = {
        name:"后盾人",
        age:20,
        isLock:false
    };
    function isLock(user:UserInterface,lock:boolean):UserInterface{
        user.isLock = lock;
        return user;
    }
    
    console.log(isLock(user,true));
}